MailPoet\Subscribers\SubscribersRepository A

Total Complexity 66
Dependencies 16
Dependents 66
Total lines 617
Lines of code 464
Logical lines of code 155
Comment lines 73
Methods 41
Properties 3

Methods 41

Method Rating Maintainability Complexity Lines of code
addTagToSubscribers()
S
53 3 23
addSubscribersToSegment()
S
53 3 23
bulkDelete()
S
48 2 36
getWooCommerceSegmentSubscriber()
S
57 2 17
removeSubscribersFromAllSegments()
S
58 2 16
maybeUpdateLastPageViewAt()
S
66 3 9
maybeUpdateLastEngagement()
S
67 3 8
maybeUpdateLastOpenAt()
S
66 3 9
maybeUpdateLastClickAt()
S
66 3 9
bulkRestore()
S
59 2 15
maybeUpdateLastPurchaseAt()
S
66 3 9
bulkTrash()
S
60 2 14
bulkUpdateLastSendingAt()
S
60 2 14
bulkRemoveFromSegment()
S
60 2 13
bulkRemoveTag()
S
60 2 13
bulkUpdateEngagementScoreUpdatedAt()
S
62 2 13
getListLevelCountsOfSubscribedAfter()
S
57 1 18
getListLevelCountsOfUnsubscribedAfter()
S
59 1 16
getCurrentWPUser()
S
68 2 7
woocommerceUserExists()
S
60 1 15
bulkMoveToSegment()
S
66 2 9
findExclusiveSubscribersBySegment()
S
61 1 13
getCountOfUnsubscribedAfter()
S
62 1 12
bulkUnsubscribe()
S
62 1 12
findByUpdatedScoreNotInLastMonth()
S
62 1 12
getCountOfLastSubscribedAfter()
S
64 1 11
getMaxSubscriberId()
S
68 1 8
bulkAddTag()
S
73 1 5
__construct()
S
73 1 5
findIdAndEmailByEmails()
S
68 1 8
getUndeletedSubscribersEmailsByIds()
S
65 1 10
findIdsOfDeletedByEmails()
S
66 1 9
getEntityClassName()
S
82 1 3
findWpUserIdAndEmailByEmails()
S
68 1 8
bulkAddToSegment()
S
73 1 5
bulkRemoveFromAllSegments()
S
73 1 5
findBySegment()
S
66 1 9
invalidateTotalSubscribersCache()
S
81 1 3
getCountOfSubscribersForStates()
S
65 1 10
getTotalSubscribers()
S
70 1 7
getCurrentDateTime()
S
79 1 3